import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIcons from '@element-plus/icons-vue' // 引入所有图标组件

import App from './App.vue'
import router from './router'

const app = createApp(App)

// 注册所有图标组件
Object.keys(ElementPlusIcons).forEach((key) => {
  app.component(key, ElementPlusIcons[key])
})

app.use(createPinia())
app.use(ElementPlus)
app.use(router)

app.mount('#app')
